<form class="form-horizontal clearfix" role="form" name="permissionEditForm"
	action="${(cardone.webContextUrl)!}/authority/permission/save.json">
	<input type="hidden" name="id" value="${permission.id!}">
	<div class="form-group">
		<label class="col-sm-1 control-label">站点：</label>
		<div class="col-sm-3">
			<select name="siteId" class="form-control"> <#assign projectList =
				cardone.DictionaryUtils.findListByTypeCode("project")> <#if projectList??> <#list projectList as project>
				<optgroup label="${project.name!}">
					<#assign siteList = cardone.SiteUtils.findListByProjectCode(project.code)> <#if siteList??> <#list siteList as site> <#if
					(site.id == permission.siteId)>
					<option value="${site.id}" selected="selected">${site.name}</option>
					<#else>
					<option value="${site.id}">${site.name}</option>
					</#if> </#list> </#if>
				</optgroup> </#list> </#if>
			</select>
		</div>

		<label class="col-sm-1 control-label">类别：</label>
		<div class="col-sm-3">
			<select name="typeId" class="form-control"> <#assign permissionTypeList =
				cardone.DictionaryUtils.findListByTypeCode("permission_type")> <#if permissionTypeList??> <#list permissionTypeList as
				permissionType> <#if (permissionType.id == permission.typeId)>
				<option value="${permissionType.id!}" selected="selected">${permissionType.name!}</option> <#else>
				<option value="${permissionType.id!}">${permissionType.name!}</option> </#if> </#list> </#if>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">代码：</label>
		<div class="col-sm-3">
			<input type="text" name="code" value="${permission.code!}" class="form-control" placeholder="请输入代码" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">名称：</label>
		<div class="col-sm-3">
			<input type="text" name="name" value="${permission.name!}" class="form-control" placeholder="请输入名称" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">排序:</label>
		<div class="col-sm-3">
			<input type="number" name="orderNum" value="${permission.orderNum!}" class="form-control" placeholder="请输入排序">
		</div>
	</div>
	<div class="pull-right">
		<button class="btn btn-primary c1-save" type="button">保存</button>
		<button class="btn" type="reset">重置</button>
		<button class="btn c1-back" type="button">返回</button>
	</div>
</form>